/* 8911106 302933981 Ofri Keidar */

/******************************************************************************
 * Student Name: Ofri Keidar
 * Exercise Name: Ex6
 * File Description: Contains the main function which initiates the program
 ******************************************************************************/

#include <iostream>
using namespace std;
#include "Menu.h"

/***********************************************************************************
* Program Name: Ex6
* The Operation: The program is a store's inventory and allows the following options:
* 						  1. Add new item to inventory
* 						  2. Order stock
* 						  3. Receive order
* 						  4. Sell item
* 						  5. Print sales documentation
* 						  6. Exit program
************************************************************************************/

int main() {

	Menu menu; // create a menu object
	try { // try executing program
		menu.start();
	}
	catch (bad_alloc& error) { // catch allocation errors (program includes dynamic allocations)
		cout << error.what() << endl; // print error message
	}
	return 0;
}
